{include file="header.html"}
<div id="rightTop">
  <p>出租管理</p>
  <ul class="subnav">
    <li>{$lang.manage}</li>
    <li><a class="btn1" href="index.php?app=o2orent&amp;act=add">{$lang.add}</a></li>
    &nbsp;&nbsp;&nbsp;
<!--    <li>
        <form id="myform" action="" method="post" enctype="multipart/form-data">
            <input type="hidden" name="app" value="o2orent" >
            <input type="hidden" name="act" value="input_excel">
            <input type='button' value='选择文件' onclick="document.getElementById('inputExcel').click()" style="height:20px; border:1px solid #cdcdcd; width:100px;" />
            <input type='text' name='textfield' readonly="true" id='textfield' style="height:20px; border:1px solid #cdcdcd; width:180px;" /> 
            <input type="file" name="inputExcel" id="inputExcel" onchange="document.getElementById('textfield').value=this.value" style=" position:absolute; top: -9999px;">
            <a class="import_btn1" onclick="document.getElementById('myform').submit();" href="javascript:void(0);">导入数据</a>
        </form>
    </li>-->
  </ul>
</div>
<div class="mrightTop">
  <div class="fontl">
    <form method="get">
       <div class="left">
          <input type="hidden" name="app" value="o2orent" />
          <input type="hidden" name="act" value="index" />
          出租位:
          <input class="queryInput" type="text" name="rent_no" value="{$smarty.get.rent_no|escape}" />
          楼层:
            <select class="querySelect" name="floor">
              <option value="">--请选择--</option>
              {html_options options=$floors selected=$query.rent_floor}
            </select>
          <input type="submit" class="formbtn" value="{$lang.query}" />
      </div>
    </form>
  </div>
  <div class="fontr">{include file=page.top.html} </div>
</div>
<div class="tdare">
  <table width="100%" cellspacing="0" class="dataTable">
    <!--{if $rents}-->
    <tr class="tatr1">
      <td width="20" class="firstCell"><input type="checkbox" class="checkall" /></td>
      <td>出租位</td>
      <td><span ectype="order_by" fieldname="floor">所在楼层</span></td>
      <td>联系人</td>
      <td class="table-center">出租面积</td>
      <td class="table-center">月租</td>
      <td class="table-center">管理费</td>
      <td class="table-center">联系电话</td>
      <td class="table-center">{$lang.handler}</td>
    </tr>
    <!--{/if}-->
    <!--{foreach from=$rents item=rent}-->
    <tr class="tatr2">
      <td class="firstCell"><input type="checkbox" class="checkitem" value="{$rent.rent_id}" /></td>
      <td>{$rent.rent_no|escape}</td>
      <td>{$floors.$rent.floor}</td>
      <td>{$rent.link_man|escape}</td>
      <td class="table-center">{$rent.area}</td>
      <td class="table-center">{$rent.monthly}</td>
      <td class="table-center">{$rent.manage_fee}</td>
      <td class="table-center">{$rent.tel}</td>
      <td class="table-center">
        <a href="index.php?app=o2orent&amp;act=edit&amp;id={$rent.rent_id}">{$lang.edit}</a> |
        <a href="javascript:drop_confirm('{$lang.drop_confirm}', 'index.php?app=o2orent&amp;act=drop&amp;id={$rent.rent_id}');">{$lang.drop}</a>
    </tr>
    <!--{foreachelse}-->
    <tr class="no_data">
      <td colspan="12">{$lang.no_data}</td>
    </tr>
    <!--{/foreach}-->
  </table>
  <!--{if $rents}-->
    <div id="dataFuncs">
        <div id="batchAction" class="left paddingT15">
        <input class="formbtn batchButton" type="button" value="{$lang.drop}" name="id" uri="index.php?app=o2orent&act=drop&ret_page={$page_info.curr_page}" presubmit="confirm('{$lang.drop_confirm}');" />
        </div>
    </div>
  <div class="pageLinks">{include file=page.bottom.html}</div>
  </div>
  <div class="clear"></div>
  <!--{/if}-->

{include file="footer.html"}